/* 答题详情页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
}

.detail-container {
    padding-bottom: 50px;
}

/* 顶部栏 */
.detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-title {
    color: white;
    font-size: 28px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn-home,
.btn-again {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-home {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-home:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-again {
    background: white;
    color: #667eea;
}

.btn-again:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 统计卡片 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    font-size: 48px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f7fa;
}

.stat-correct .stat-icon {
    background: #e8f5e9;
    color: #2e7d32;
}

.stat-wrong .stat-icon {
    background: #ffebee;
    color: #c62828;
}

.stat-score .stat-icon {
    background: #fff3e0;
    color: #e65100;
}

.stat-time .stat-icon {
    background: #e3f2fd;
    color: #1976d2;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
}

.stat-label {
    font-size: 16px;
    color: #666;
    margin-top: 5px;
}

/* 题目列表 */
.questions-section {
    margin-top: 40px;
}

.section-title {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 25px;
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 题目项 */
.question-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.question-item.correct {
    border-left: 4px solid #4caf50;
}

.question-item.incorrect {
    border-left: 4px solid #f44336;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f5f7fa;
}

.question-number {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.question-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-correct {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-wrong {
    background: #ffebee;
    color: #c62828;
}

/* 题目内容 */
.question-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.6;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    transition: all 0.3s;
}

.option-label {
    font-weight: 600;
    color: #666;
    min-width: 30px;
}

.option-text {
    flex: 1;
    color: #2c3e50;
}

.option.user-selected {
    background: #fff3e0;
    border-color: #ff9800;
}

.option.correct-answer {
    background: #e8f5e9;
    border-color: #4caf50;
}

.option.wrong-answer {
    background: #ffebee;
    border-color: #f44336;
}

/* 答案解析 */
.question-explanation {
    margin-top: 20px;
    padding: 15px;
    background: #f5f7fa;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.explanation-title {
    font-weight: 600;
    color: #2196f3;
    margin-bottom: 10px;
}

.explanation-content {
    color: #2c3e50;
    line-height: 1.6;
}

/* 错误信息 */
.error-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.error-message p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.btn-back-quiz {
    display: inline-block;
    padding: 12px 30px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-back-quiz:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .detail-title {
        font-size: 22px;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* 图片样式 */
.question-image {
    max-width: 100%;
    max-height: 400px;
    margin: 15px 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
}

.option-content-inline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
}

.explanation-image {
    max-width: 100%;
    max-height: 300px;
    margin: 15px 0;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: block;
}

/* 响应式图片 */
@media (max-width: 768px) {
    .question-image {
        max-height: 300px;
    }
    
    .option-image {
        max-height: 150px;
    }
    
    .explanation-image {
        max-height: 250px;
    }
}
